﻿// <copyright file="Facet.cs" company="Microsoft Corporation">
// Copyright (c) 2008 All Right Reserved
// </copyright>
// <author>Michael S. Scherotter</author>
// <email>mischero@microsoft.com</email>
// <date>2009-03-06</date>
// <summary>Article Facet class.</summary>

namespace NYTimes.Data
{
    /// <summary>
    /// Facet for Article searches
    /// </summary>
    public class Facet
    {
        /// <summary>
        /// Gets or sets the number of results for the facet
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// Gets or sets the term found in the facet
        /// </summary>
        public string Term { get; set; }

        /// <summary>
        /// Gets the properties and values listed
        /// </summary>
        /// <returns>a string with the property names and values</returns>
        public override string ToString()
        {
            return Synergist.Utility.GetProperties(this);
        }
    }
}
